import request from "@/utils/http";

export const getCaseListApi = (data) => {
    return request.post('/package/getpackagelist', data);
};

export const getCaseDetailApi = (data) => {
    return request.post('/package/getpackageinfo', data);
};

export const getCaseAddonListApi = (data) => {
    return request.post('/package/getadditions', data);
};

export const getCaseAddonByIdApi = (data) => {
    return request.post('/package/getAddOnDetail', data);
};
export const backToPackage = (data) => {
    return request.post('/package/backto_package', data);
};

export const getOrganizationListApi = () => {
    return request.get('/rich/getinstitutions');
}
//美年列表
export const getHospitalByPackage = (data) => {
    return request.post('/meini/getHospitalByPackage',data);
}
//美年预约
export const createReservation = (data) => {
    return request.post('/meini/createReservation',data,{header:{"content-type":"application/x-www-form-urlencoded"}});
}
// 美年改约
export const mNchangeReservationApi = (data) => {
    return request.post('/meini/changeReservation',data,{header:{"content-type":"application/x-www-form-urlencoded"}});
}
// 美年取消预约
export const mNcancelReservationApi = (data) => {
    return request.post('/meini/cancelReservation',data,{header:{"content-type":"application/x-www-form-urlencoded"}});
}
// 
//惠普列表
export const getphlist = (data) => {
    return request.post('/phauth/getphlist',data);
}
//惠普预约
export const pHaddcheckinfoApi = (data) => {
    return request.post('/phauth/addcheckinfo',data);
}
//惠普改约
export const pHeditcheckinfoApi = (data) => {
    return request.post('/phauth/editcheckinfo',data);
}
//惠普修改状态
export const pHsetcheckApi = (data) => {
    return request.post('/phauth/setcheck',data);
}
//取消预约
export const pHdeleteinfoApi = (data) => {
    return request.post('/phauth/deleteinfo',data);
}
//瑞慈查询库存
export const rCqueryCapacity = (data) => {
    return request.post('/rich/query_capacity',data);
}
//美年查询库存
export const mNgetSchedule = (data) => {
    return request.post('/meini/getSchedule',data);
}